package com.qing.demo02;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;

//
@Aspect
public class AnnotationPointCut {

	@Pointcut("execution(* com.qing.demo02.*(..))")
	public void pointcut() {
	}

	;

	@Before("pointcut()")
	public void before() {
		System.out.println("=============before======");
	}

	@After("execution(* com.qing.demo02.*(..))")
	public void after() {
		System.out.println("=============after======");
	}

	@Around("pointcut())")
	public void around(JoinPoint joinPoint) {
		System.out.println("=============around======" + joinPoint.getArgs());
	}
}
